//
//  SubjectCellView.h
//  Budget
//
//  Created by Barak on 10/26/12.
//  Copyright (c) 2012 Barak. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BudgetRule.h"

@interface SubjectCellView : UITableViewCell{
    
    __weak IBOutlet UILabel *_utilizationLabel;
    __weak IBOutlet UIProgressView *_utilizationProgress;

    __weak IBOutlet UIView *_editingControls;
    __weak IBOutlet UITextField *_limitInput;
    __weak IBOutlet UIStepper *_limitStepper;
    __weak IBOutlet UIImageView *_pointer;
    
    __weak IBOutlet UIView *_slideArea;
}

- (IBAction)textValueChanged:(id)sender;

@property (weak, nonatomic) IBOutlet UILabel *SubjectLabel;
@property (readwrite, nonatomic) double limit;
@property (readwrite, nonatomic) double utilization;
@property (readwrite, nonatomic) double totalBudget;
@property (strong, nonatomic) BudgetRule* rule;
- (IBAction)stepperChange:(id)sender;
- (void) updateProgress;
//@property (readwrite, nonatomic) BOOL editing;
@end
